const { http } = uni.$u
// 获取菜单
export const fetchMenu = (params, config = {}) => http.post('/ebapi/public_api/index', params, config)

export const login = (params, config = {}) => http.post('/api/user/login', params, config)

export const getUserInfo = (params, config = {}) => http.post('/api/user/index', params, config)

export const swiperList = (data) => http.get('/api/manystore.swiper/list', data)

export const monitorList = (data) => http.get('/api/manystore.monitor/list', data)

export const studentList = (data) => http.get('/api/manystore.student/list', data)

export const userStudent = (data) => http.get('/api/manystore.user/studentlist', data)

export const banjiList = (data) => http.get('/api/manystore.teacher/banji', data)

export const monitorDetail = (data) => http.get('/api/manystore.monitor/detail', data)

export const message = (params, config = {}) => http.post('/api/manystore.user/message', params, config)

export const getCode = (params, config = {}) => http.post('/api/sms/send', params, config)
export const checkCode = (params, config = {}) => http.post('/api/sms/check', params, config)
export const changePassword = (params, config = {}) => http.post('/api/user/resetpwd', params, config)

export const noticeList = (data) => http.get('/api/manystore.notice/list', data)

